# This file is part of BlackArch Linux ( https://www.blackarch.org/ ).
# See COPYING for license details.

pkgname=python-exifread
_pkgname=exif-py
pkgver=3.0.0
pkgrel=5
pkgdesc='Python library to extract EXIF data from tiff and jpeg files.'
arch=('any')
url='https://github.com/ianare/exif-py/'
license=('BSD')
depends=('python' 'python-pylint' 'mypy')
makedepends=('python-setuptools')
source=("https://github.com/ianare/$_pkgname/archive/$pkgver.tar.gz")
sha512sums=('3b819718f5fc9f7807dc245908c2724d1023ce6345b6f6a84ea0c10d62b47939ae4dce23db868d67b6eeaa07e5c88fd406520106f31883d15442eaabcebb0746')

build() {
  cd "$_pkgname-$pkgver"

  python setup.py build
}

package() {
  cd "$_pkgname-$pkgver"

  python setup.py install --root="$pkgdir" --prefix=/usr -O1 --skip-build
}

